
@model List<ToDo.Models.ItemViewModels>
@{
    ViewData["Title"] = "SearchReasult";
}
<script src="~/js/bootbox.js"></script>
<script src="~/js/index.js"></script>
<link href="~/css/SearchResult.css" rel="stylesheet" />
    <table class="showItems" id="Reasult">
        @foreach (var item in Model)
        {
            <tr class="oneItem">
                <td>
                    <div class="circlde"><div id="inside-circle" onclick="changeBackground();"></div></div>
                </td>
                <td class="searchItemContent">
                    <a href="/Item/ChangeItem?itemId=@item.ItemId&IsReturnSearch=true&content=@item.ChangeBeforeContent" title="修改事项">
                        <span class="input-inventory-name">@item.Content</span>
                    </a>
                </td>
                <td class="showTime">
                    @item.CreateTime.Month/@item.CreateTime.Day
                    &nbsp;&nbsp;@item.CreateTime.Hour:@item.CreateTime.Minute
                </td>
                <td>
                    <a onclick="deleteItem(@item.ItemId)" data-toggle="modal" data-target="#findItem-delete">
                        <img src="~/images/删除.png" class="findItem-delete-img"  />
                    </a>
                </td>
            </tr>

        }
    </table>
<div class="modal fade" id="findItem-delete">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">
                    你确定要删除吗？
                </h4>
            </div>
            <div class="modal-footer">
                <input type="hidden" name="itemId" id="itemId" />
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    取消
                </button>
                <button type="button" class="btn btn-primary" onclick="deleteInSearch()">
                    确定
                </button>
            </div>
        </div>
    </div>
</div>